1#!/bin/keymap -s 2# 3# Raw key numbering for 102-key keyboard... 4# [sys] [brk] 5# 0x7e 0x7f 6# [esc] [ f1] [ f2] [ f3] [ f4] [ f5] [ f6] [ f7] [ f8] [ f9] [f10] [f11] [f12] [prn] [scr] [pau] 7# 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0a 0x0b 0x0c 0x0d 0x0e 0x0f 0x10 K E Y P A D K E Y S 8# 9# [ ` ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 0 ] [ - ] [ = ] [ bck ] [ins] [hme] [pup] [num] [ / ] [ * ] [ - ] 10# 0x11 0x12 0x13 0x14 0x15 0x16 0x17 0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x1e 0x1f 0x20 0x21 0x22 0x23 0x24 0x25 11# 12# [ tab ] [ q ] [ w ] [ e ] [ r ] [ t ] [ y ] [ u ] [ i ] [ o ] [ p ] [ [ ] [ ] ] [ \ ] [del] [end] [pdn] [ 7 ] [ 8 ] [ 9 ] [ + ] 13# 0x26 0x27 0x28 0x29 0x2a 0x2b 0x2c 0x2d 0x2e 0x2f 0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 0x39 0x3a 14# 15# [ caps ] [ a ] [ s ] [ d ] [ f ] [ g ] [ h ] [ j ] [ k ] [ l ] [ ; ] [ ' ] [ enter ] [ 4 ] [ 5 ] [ 6 ] 16# 0x3b 0x3c 0x3d 0x3e 0x3f 0x40 0x41 0x42 0x43 0x44 0x45 0x46 0x47 0x48 0x49 0x4a 17# 18# [shft] [ \ ] [ z ] [ x ] [ c ] [ v ] [ b ] [ n ] [ m ] [ , ] [ . ] [ / ] [ shift ] [ up] [ 1 ] [ 2 ] [ 3 ] [ent] 19# 0x4b 0x69 0x4c 0x4d 0x4e 0x4f 0x50 0x51 0x52 0x53 0x54 0x55 0x56 0x57 0x58 0x59 0x5a 0x5b 20# 21# [ ctrl ] [ cmd ] [ space ] [ cmd ] [ ctrl ] [lft] [dwn] [rgt] [ 0 ] [ . ] 22# 0x5c 0x5d 0x5e 0x5f 0x60 0x61 0x62 0x63 0x64 0x65 23# 24# NOTE: Key 0x69 does not exist on US keyboards 25# NOTE: On a Microsoft Natural Keyboard: 26# left option = 0x66 27# right option = 0x67 28# menu key = 0x68 29# NOTE: On an Apple Extended Keyboard: 30# left option = 0x66 31# right option = 0x67 32# keypad '=' = 0x6a 33Version = 3 34CapsLock = 0x3b 35ScrollLock = 0x0f 36NumLock = 0x22 37LShift = 0x4b 38RShift = 0x56 39LCommand = 0x66 40RCommand = 0x67 41LControl = 0x5c 42RControl = 0x60 43LOption = 0x5d 44ROption = 0x5f 45Menu = 0x68 46 47# 48# Lock settings 49# To set NumLock, do the following: 50# LockSettings = NumLock 51# 52# To set everything, do the following: 53# LockSettings = CapsLock NumLock ScrollLock 54# 55LockSettings = 56# Legend: 57# n = Normal 58# s = Shift 59# c = Control 60# C = CapsLock 61# o = Option 62# Key n s c o os C Cs Co Cos 63Key 0x00 = '' '' '' '' '' '' '' '' '' 64Key 0x01 = 0x1b 0x1b 0x1b 0x1b 0x1b 0x1b 0x1b 0x1b 0x1b 65Key 0x02 = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 66Key 0x03 = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 67Key 0x04 = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 68Key 0x05 = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 69Key 0x06 = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 70Key 0x07 = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 71Key 0x08 = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 72Key 0x09 = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 73Key 0x0a = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 74Key 0x0b = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 75Key 0x0c = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 76Key 0x0d = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 77Key 0x0e = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 78Key 0x0f = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 79Key 0x10 = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 80Key 0x11 = '<' '>' '' '' '' '<' '>' '' '' 81Key 0x12 = '+' '1' '' '`' '' '+' '1' '`' '' 82Key 0x13 = 0xc49b '2' '' '@' '' 0xc49b '2' '@' '' 83Key 0x14 = 0xc5a1 '3' '' '#' '' 0xc5a1 '3' '#' '' 84Key 0x15 = 0xc48d '4' '' '$' '' 0xc48d '4' '$' '' 85Key 0x16 = 0xc599 '5' '' '~' '' 0xc599 '5' '~' '' 86Key 0x17 = 0xc5be '6' '' '^' '' 0xc5be '6' '^' '' 87Key 0x18 = 0xc3bd '7' '' '&' '' 0xc3bd '7' '&' '' 88Key 0x19 = 0xc3a1 '8' '' '*' '' 0xc3a1 '8' '*' '' 89Key 0x1a = 0xc3ad '9' '' '{' '' 0xc3ad '9' '{' '' 90Key 0x1b = 0xc3a9 '0' '' '}' '' 0xc3a9 '0' '}' '' 91Key 0x1c = '=' '%' '' 0xcb9a ',' '=' '%' 0xcb9a ',' 92Key 0x1d = 0xc2b4 0xcb87 '' 0xcc82 '-' 0xc2b4 0xcb87 0xcc82 '-' 93Key 0x1e = 0x08 0x08 0x7f 0x08 0x08 0x08 0x08 0x08 0x08 94Key 0x1f = 0x05 0x05 0x05 0x05 0x05 0x05 0x05 0x05 0x05 95Key 0x20 = 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 96Key 0x21 = 0x0b 0x0b 0x0b 0x0b 0x0b 0x0b 0x0b 0x0b 0x0b 97Key 0x22 = '' '' '' '' '' '' '' '' '' 98Key 0x23 = '/' '/' '/' '/' '/' '/' '/' '/' '/' 99Key 0x24 = '*' '*' '*' '*' '*' '*' '*' '*' '*' 100Key 0x25 = '-' '-' '-' '-' '-' '-' '-' '-' '-' 101Key 0x26 = 0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09 102Key 0x27 = 'q' 'Q' 0x11 '' '' 'Q' 'q' '' '' 103Key 0x28 = 'w' 'W' 0x17 '' '' 'W' 'w' '' '' 104Key 0x29 = 'e' 'E' 0x05 '' '' 'E' 'e' '' '' 105Key 0x2a = 'r' 'R' 0x12 '' '' 'R' 'r' '' '' 106Key 0x2b = 't' 'T' 0x14 '' '' 'T' 't' '' '' 107Key 0x2c = 'z' 'Z' 0x1a '' '' 'Z' 'z' '' '' 108Key 0x2d = 'u' 'U' 0x15 '' '' 'U' 'u' '' '' 109Key 0x2e = 'i' 'I' 0x09 '' '' 'I' 'i' '' '' 110Key 0x2f = 'o' 'O' 0x0f '' '' 'O' 'o' '' '' 111Key 0x30 = 'p' 'P' 0x10 '' '' 'P' 'p' '' '' 112Key 0x31 = 0xc3ba '/' 0x1b '[' '' 0xc39a '/' '[' '' 113Key 0x32 = ')' '(' 0x1d ']' '' ')' '(' ']' '' 114Key 0x33 = 0xc2a8 '`' 0x1c 0xc2a8 '"' 0xc2a8 '`' 0xc2a8 '"' 115Key 0x34 = 0x7f 0x7f 0x7f 0x7f 0x7f 0x7f 0x7f 0x7f 0x7f 116Key 0x35 = 0x04 0x04 0x04 0x04 0x04 0x04 0x04 0x04 0x04 117Key 0x36 = 0x0c 0x0c 0x0c 0x0c 0x0c 0x0c 0x0c 0x0c 0x0c 118Key 0x37 = 0x01 '7' 0x01 0x01 '7' 0x01 '7' 0x01 '7' 119Key 0x38 = 0x1e '8' 0x1e 0x1e '8' 0x1e '8' 0x1e '8' 120Key 0x39 = 0x0b '9' 0x0b 0x0b '9' 0x0b '9' 0x0b '9' 121Key 0x3a = '+' '+' '+' '+' '+' '+' '+' '+' '+' 122Key 0x3b = '' '' '' '' '' '' '' '' '' 123Key 0x3c = 'a' 'A' 0x01 '' '' 'A' 'a' '' '' 124Key 0x3d = 's' 'S' 0x13 '' '' 'S' 's' '' '' 125Key 0x3e = 'd' 'D' 0x04 '' '' 'D' 'd' '' '' 126Key 0x3f = 'f' 'F' 0x06 '' '' 'F' 'f' '' '' 127Key 0x40 = 'g' 'G' 0x07 '' '' 'G' 'g' '' '' 128Key 0x41 = 'h' 'H' 0x08 '' '' 'H' 'h' '' '' 129Key 0x42 = 'j' 'J' 0x0a '' '' 'J' 'j' '' '' 130Key 0x43 = 'k' 'K' 0x0b '' '' 'K' 'k' '' '' 131Key 0x44 = 'l' 'L' 0x0c 0xc582 0xc581 'L' 'l' 0xc581 0xc582 132Key 0x45 = 0xc5af '"' '' ';' 0xe280a6 0xc5ae '"' ';' 0xe280a6 133Key 0x46 = 0xc2a7 '!' '' '\'' '~' 0xc2a7 '!' '\'' '~' 134Key 0x47 = 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 135Key 0x48 = 0x1c '4' 0x1c 0x1c '4' 0x1c '4' 0x1c '4' 136Key 0x49 = '' '5' '' '' '5' '' '5' '' '5' 137Key 0x4a = 0x1d '6' 0x1d 0x1d '6' 0x1d '6' 0x1d '6' 138Key 0x4b = '' '' '' '' '' '' '' '' '' 139Key 0x4c = 'y' 'Y' 0x19 '' '' 'Y' 'y' '' '' 140Key 0x4d = 'x' 'X' 0x18 '' '' 'X' 'x' '' '' 141Key 0x4e = 'c' 'C' 0x03 '' '' 'C' 'c' '' '' 142Key 0x4f = 'v' 'V' 0x16 '' '' 'V' 'v' '' '' 143Key 0x50 = 'b' 'B' 0x02 '' '' 'B' 'b' '' '' 144Key 0x51 = 'n' 'N' 0x0e '' '' 'N' 'n' '' '' 145Key 0x52 = 'm' 'M' 0x0d '' '' 'M' 'm' '' '' 146Key 0x53 = ',' '?' '' '<' 0xe289a4 ',' '?' '<' 0xe289a4 147Key 0x54 = '.' ':' '' '>' 0xe289a5 '.' ':' '>' 0xe289a5 148Key 0x55 = '-' '_' 0x1f '-' 0xe28094 '-' '_' '-' 0xe28094 149Key 0x56 = '' '' '' '' '' '' '' '' '' 150Key 0x57 = 0x1e 0x1e 0x1e 0x1e 0x1e 0x1e 0x1e 0x1e 0x1e 151Key 0x58 = 0x04 '1' 0x04 0x04 '1' 0x04 '1' 0x04 '1' 152Key 0x59 = 0x1f '2' 0x1f 0x1f '2' 0x1f '2' 0x1f '2' 153Key 0x5a = 0x0c '3' 0x0c 0x0c '3' 0x0c '3' 0x0c '3' 154Key 0x5b = 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 155Key 0x5c = '' '' '' '' '' '' '' '' '' 156Key 0x5d = '' '' '' '' '' '' '' '' '' 157Key 0x5e = ' ' ' ' 0x00 ' ' ' ' ' ' ' ' ' ' ' ' 158Key 0x5f = '' '' '' '' '' '' '' '' '' 159Key 0x60 = '' '' '' '' '' '' '' '' '' 160Key 0x61 = 0x1c 0x1c 0x1c 0x1c 0x1c 0x1c 0x1c 0x1c 0x1c 161Key 0x62 = 0x1f 0x1f 0x1f 0x1f 0x1f 0x1f 0x1f 0x1f 0x1f 162Key 0x63 = 0x1d 0x1d 0x1d 0x1d 0x1d 0x1d 0x1d 0x1d 0x1d 163Key 0x64 = 0x05 '0' 0x05 0x05 '0' 0x05 '0' 0x05 '0' 164Key 0x65 = 0x7f ',' 0x7f 0x7f ',' 0x7f ',' 0x7f ',' 165Key 0x66 = '' '' '' '' '' '' '' '' '' 166Key 0x67 = '' '' '' '' '' '' '' '' '' 167Key 0x68 = '' '' '' '' '' '' '' '' '' 168Key 0x69 = '\\' '|' '' '' '' '\\' '|' '' '' 169Key 0x6a = '=' '=' '=' '=' '=' '=' '=' '=' '=' 170Key 0x6b = '' '' '' '' '' '' '' '' '' 171Key 0x6c = '' '' '' '' '' '' '' '' '' 172Key 0x6d = '' '' '' '' '' '' '' '' '' 173Key 0x6e = '' '' '' '' '' '' '' '' '' 174Key 0x6f = '' '' '' '' '' '' '' '' '' 175Key 0x70 = '' '' '' '' '' '' '' '' '' 176Key 0x71 = '' '' '' '' '' '' '' '' '' 177Key 0x72 = '' '' '' '' '' '' '' '' '' 178Key 0x73 = '' '' '' '' '' '' '' '' '' 179Key 0x74 = '' '' '' '' '' '' '' '' '' 180Key 0x75 = '' '' '' '' '' '' '' '' '' 181Key 0x76 = '' '' '' '' '' '' '' '' '' 182Key 0x77 = '' '' '' '' '' '' '' '' '' 183Key 0x78 = '' '' '' '' '' '' '' '' '' 184Key 0x79 = '' '' '' '' '' '' '' '' '' 185Key 0x7a = '' '' '' '' '' '' '' '' '' 186Key 0x7b = '' '' '' '' '' '' '' '' '' 187Key 0x7c = '' '' '' '' '' '' '' '' '' 188Key 0x7d = '' '' '' '' '' '' '' '' '' 189Key 0x7e = '' '' '' '' '' '' '' '' '' 190Key 0x7f = '' '' '' '' '' '' '' '' '' 191 192Acute ' ' = 0xc2b4 193Acute 'A' = 0xc381 194Acute 'E' = 0xc389 195Acute 'I' = 0xc38d 196Acute 'O' = 0xc393 197Acute 'U' = 0xc39a 198Acute 'Y' = 0xc39d 199Acute 'a' = 0xc3a1 200Acute 'e' = 0xc3a9 201Acute 'i' = 0xc3ad 202Acute 'o' = 0xc3b3 203Acute 'u' = 0xc3ba 204Acute 'y' = 0xc3bd 205AcuteTab = Normal Shift CapsLock CapsLock-Shift 206 207# Until Haiku supports ring natively, use it in place of grave. 208Grave ' ' = 0xcb9a 209Grave 'U' = 0xc5ae 210Grave 'u' = 0xc5af 211GraveTab = Normal Shift Option Shift-Option CapsLock CapsLock-Shift CapsLock-Option CapsLock-Shift-Option 212 213Circumflex ' ' = 0xcc82 214Circumflex 'A' = 0xc382 215Circumflex 'E' = 0xc38a 216Circumflex 'I' = 0xc38e 217Circumflex 'O' = 0xc394 218Circumflex 'U' = 0xc39b 219Circumflex 'a' = 0xc3a2 220Circumflex 'e' = 0xc3aa 221Circumflex 'i' = 0xc3ae 222Circumflex 'o' = 0xc3b4 223Circumflex 'u' = 0xc3bb 224CircumflexTab = Normal Shift Option Shift-Option CapsLock CapsLock-Shift CapsLock-Option CapsLock-Shift-Option 225 226Diaeresis ' ' = 0xc2a8 227Diaeresis 'A' = 0xc384 228Diaeresis 'E' = 0xc38b 229Diaeresis 'I' = 0xc38f 230Diaeresis 'O' = 0xc396 231Diaeresis 'U' = 0xc39c 232Diaeresis 'Y' = 0xc5b8 233Diaeresis 'a' = 0xc3a4 234Diaeresis 'e' = 0xc3ab 235Diaeresis 'i' = 0xc3af 236Diaeresis 'o' = 0xc3b6 237Diaeresis 'u' = 0xc3bc 238Diaeresis 'y' = 0xc3bf 239DiaeresisTab = Normal Shift CapsLock CapsLock-Shift 240 241# Until Haiku supports caron natively, use it in place of tilde. 242Tilde ' ' = 0xcb87 243Tilde 'C' = 0xc48c 244Tilde 'D' = 0xc48e 245Tilde 'N' = 0xc587 246Tilde 'R' = 0xc598 247Tilde 'S' = 0xc5a0 248Tilde 'T' = 0xc5a4 249Tilde 'Z' = 0xc5bd 250Tilde 'c' = 0xc48d 251Tilde 'd' = 0xc48f 252Tilde 'e' = 0xc49b 253Tilde 'n' = 0xc588 254Tilde 'r' = 0xc599 255Tilde 's' = 0xc5a1 256Tilde 't' = 0xc5a5 257Tilde 'z' = 0xc5be 258TildeTab = Normal Shift CapsLock CapsLock-Shift 259